<?php
	defined('_JEXEC') or die('Restricted access');
    // G
        
        //{
            global $g_ambient_namespace;
            global $g_javascript_namespace;
			//
			$local_query_parameter = $arguments[0];
			$local_parent_tag = $arguments[3];
			//
			$local_header_script_generator = $this->main_tag->header_script_generator;
			//
			$local_current_tag = $this->main_container;
            if ($local_query_parameter->sql_values != false)
            {
				
                $local_url = $g_ambient_namespace->get_absolute_web_file_path(false);
				//
				$local_field_index = 1;
				//echo "%".$this->get_main_query_parameter_value(t_query_result_list::main_query_component_destination_component_where_fields)."%";
				$local_field_name = $this->main_query_parameter->get_parameter_value(
					t_cuteengine_component::main_query_field_name_specific_parameters,
					'3_'.$local_field_index);
				//$this->log->add_log_on_page("local_field_name: $local_field_name "); 
                $prefix_url_argument = $this->get_main_query_parameter_value(t_query_result_list::main_query_component_prefix_url_argument);
                $local_args = $prefix_url_argument;	
				while($local_field_name != '')
				{
					//$this->log->add_log_on_page("local_query_parameter->sql_values[local_field_name]: $local_query_parameter->sql_values[$local_field_name] "); 
                    //echo urlencode($local_query_parameter->sql_values[$local_field_name]);
					if ($local_args != '')
						$local_args .= t_url_parameters_list::disguised_separator_level_1;
					$local_args .= $local_query_parameter->sql_values[$local_field_name];
					$local_field_index ++;
					$local_field_name = $this->main_query_parameter->get_parameter_value(
						t_cuteengine_component::main_query_field_name_specific_parameters,
						'3_'.$local_field_index);
                   // $this->log->add_log_on_page("local_field_name: $local_field_name");     
				}
				// parameters	
				$local_parameters_list = new t_url_parameters_list(false);
				$local_parameters_list->add_new_parameter($this->get_main_query_parameter_value(t_query_result_list::main_query_component_destination_component_id),
					t_url_parameter::default_method_label,$local_args);
				//echo "local_args: $local_args";	
                //
				$local_param = $local_parameters_list->compute_disguised_parameters_string();
				//echo "local_param: $local_param <br>";
				$local_current_tag = $local_current_tag->create_and_add_child_at_bottom(t_base_tag_type::btt_a,$this->name.'_a_'.$local_query_parameter->sql_values[0]);
				$local_current_tag->add_property('href',$local_url.$local_param);
				$local_current_tag->class_name = $this->name."_link";
                $local_current_tag->add_text_to_include($local_query_parameter->sql_values[1]);
				$local_header_script_generator->add_style_sheet_property(
					".$local_tag->class_name",'font-size','15px');	
                //
                //$g_javascript_namespace->header_script_generator->add_title(', '.$local_query_parameter->sql_values[$this->get_main_query_parameter_value(t_query_result_list::main_query_component_title)]);
                //$g_javascript_namespace->header_script_generator->add_meta_tag('keywords','',", ".
                    //$local_query_parameter->sql_values[$this->get_main_query_parameter_value(t_query_result_list::main_query_component_title)],'append');
                //$this->get_main_query_parameter_value(t_query_result_list::main_query_component_title) 

            //}  
		}
        return false;
?>